<%@ Import namespace="MIMS_WRS.Web" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="SupplierIncompleteReport.aspx.vb" Inherits="MIMS_WRS.Web.SupplierIncompleteReport"%>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<HTML>
	<HEAD>
		<title>
			<%= RequestContext.OfficeName %>
			P.O. and Container Schedule - Supplier Incomplete Report</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="../../report.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		<!--
		function printDocument() {
			window.document.getElementById('ActionTop').style.display = "none";
			window.document.getElementById('ActionBottom').style.display = "none";
			window.print();
			window.document.getElementById('ActionTop').style.display = "block";
			window.document.getElementById('ActionBottom').style.display = "block";
		}
		function goback() {
			history.go(-1);
		}
		//-->
		</script>
		<style>			
			.OrderReport SPAN.highlight { COLOR: black! important }			
			.OrderReport SPAN.highlight2 { COLOR: blue }			
		</style>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<div id="divSupplierSelect" runat="server">
			<div id="ActionTop">
						<a href="../../StartPage.aspx">Front page</a>&nbsp;|&nbsp;<a href="../../login.aspx?logout=1">Logout</a>
						<br>
					</div>
				<h4><%= RequestContext.OfficeName %>
					P.O. and Container Schedule - Supplier Incomplete Report</h4>
				<table border="0" cellpadding="4" cellspacing="2">					
					<tr>
						<td valign="top" style="FONT-SIZE: 9pt; FONT-FAMILY: Arial, Tahoma">&nbsp;&nbsp;&nbsp;Supplier:</td>
						<td><asp:ListBox Rows="8" Width="10em" Runat="server" id="lbSupplier"></asp:ListBox></td>
					</tr>
					<tr>
						<td></td>
						<td><asp:Button ID="btnSelect" Runat="server" Text="Select"></asp:Button></td>
					</tr>
				</table>
			</div>
			<div id="divContent" runat="server">
				<div id="ActionTop">
					<input type="button" value="Print" onclick="printDocument()">&nbsp;&nbsp;<a href="javascript:goback();">select other supplier...</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="../StartPage.aspx">Front 
						page</a>&nbsp;|&nbsp;<a href="../login.aspx?logout=1">Logout</a>
					<br>
				</div>
				<div align="center" class="ReportTitle"><%= RequestContext.OfficeName %>
					P.O. and Container Schedule - Supplier Incomplete Report</div>
				<asp:repeater id="rptList" runat="server" enableviewstate=False>
					<headertemplate>
						<table class="OrderReport" cellpadding="0" cellspacing="1" border="1">
							<thead>
								<tr>
									<th>
										Req</th>
									<th>
										Order Date</th>
									<th>
										Bulk</th>									
									<th>
										Size</th>
									<th>
										Pack</th>
									<th>
										Type</th>
									<th>
										Supp</th>
									<th>
										O/No</th>
									<th>
									Factory ETD</th>
									<th>
									Target ETD</th>
									<th>
										Primary</th>
									<th>
										Con</th>
									<th>
										Arrival Port</th>
									<th>
										Description</th>
								</tr>
							</thead>
							<tbody>
					</headertemplate>
					<itemtemplate>
						<tr>
							<td><%# Convert.ToString(DataBinder.Eval(Container.DataItem, "REQ")).PadLeft(4, "0"c)%>
							</td>
							<td>
								<%# GetOrderDateText(DataBinder.Eval(Container.DataItem, "OrderDate")) %>
							</td>
							<td>
								<%# GetBulkText(DataBinder.Eval(Container.DataItem, "BulkType")) %>
							</td>							
							<td>
								<%# GetNullText(DataBinder.Eval(Container.DataItem, "ContainerSize")) %>
							</td>
							<td>
								<%# GetPackText(DataBinder.Eval(Container.DataItem, "LP")) %>
							</td>
							<td>
								<%# GetTypeText(DataBinder.Eval(Container.DataItem, "PONo_Type")) %>
							</td>
							<td>
								<%# GetSupplierText(DataBinder.Eval(Container.DataItem, "PONo_Supplier")).PadLeft(3, "0"c) %>
							</td>
							<td>
								<%# GetNullText(DataBinder.Eval(Container.DataItem, "PONo_Number")).PadLeft(3, "0"c) %>
							</td>
							<td>
								<%# Utilities.GetDateText(DataBinder.Eval(Container.DataItem, "FactoryETD"))%>
							</td>
							<td>
								<%# Utilities.GetDateText(DataBinder.Eval(Container.DataItem, "TargetETD"))%>
							</td>
							<td>
								<%# GetPrimaryText(DataBinder.Eval(Container.DataItem, "IsPrimary")) %>
							</td>
							<td>
								<%# GetConText(DataBinder.Eval(Container.DataItem, "PONo_Consolidation")) %>
							</td>
							<td>
								<%# GetNullText(DataBinder.Eval(Container.DataItem, "ArrivalPort")) %>
							</td>
							<td>
								<%# GetNullText(DataBinder.Eval(Container.DataItem, "Description")) %>
							</td>
						</tr>
					</itemtemplate>
					<footertemplate>
						</tbody> </table>
					</footertemplate>
				</asp:repeater>
				<div id="ActionBottom">
					<br>
					<input type="button" value="Print" onclick="printDocument()">
				</div>
			</div>
		</form>
	</body>
</HTML>
